package com.neusoft.elmboot.service.impl;

import com.neusoft.elmboot.mapper.ImageMapper;
import com.neusoft.elmboot.po.Image;
import com.neusoft.elmboot.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageServiceImpl implements ImageService {

    @Autowired
    private ImageMapper imageMapper;

    @Override
    public List<Image> listAllImage(){
        return imageMapper.listAllImage();
    }

    @Override
    public String listImageById(Integer imgId) {
        return imageMapper.listImageById(imgId);
    }
}
